package com.china08.yxyapi.repository.mg.esbag;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;

import com.china08.yxyapi.entity.mg.esbag.YxyEsbagTeachingReport;

public interface YxyEsbagTeachingReportRepository extends MongoRepository<YxyEsbagTeachingReport, String> {

    Page<YxyEsbagTeachingReport> findByTeacherIdAndSchoolIdAndClassId(String userId, String schoolId, String classId,
            Pageable pageable);

    YxyEsbagTeachingReport findById(String packId);

    Page<YxyEsbagTeachingReport> findByTeacherIdAndSchoolIdAndClassIdInAndBookcontentsIdAndPackNameContaining(
            String userId, String schoolId, List<String> classIdList, String bookContentId, String keyword,
            Pageable pageable);

    Page<YxyEsbagTeachingReport> findByTeacherIdAndSchoolIdAndClassIdAndBookcontentsIdAndPackNameContaining(
            String userId, String schoolId, String classId, String bookContentId, String keyword, Pageable pageable);

    Page<YxyEsbagTeachingReport> findByTeacherIdAndSchoolIdAndClassIdInAndBookcontentsId(String userId, String schoolId,
            List<String> classIdList, String bookContentId, Pageable pageable);

    Page<YxyEsbagTeachingReport> findByTeacherIdAndSchoolIdAndClassIdAndBookcontentsId(String userId, String schoolId,
            String classId, String bookContentId, Pageable pageable);

}
